package com.hlbbcsr.business.impl;

import org.springframework.security.authentication.encoding.Md5PasswordEncoder;

import com.hlbbcsr.dao.CustomerDAO;

public abstract class BaseManager {

	private CustomerDAO customerDAO;

	public CustomerDAO getCustomerDAO() {
		return customerDAO;
	}

	public void setCustomerDAO(CustomerDAO customerDAO) {
		this.customerDAO = customerDAO;
	}
	
	public String encodeString(String str) {
		Md5PasswordEncoder encode = new Md5PasswordEncoder();
		return encode.encodePassword(str, null);
	}
}
